home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2001 January / maximum-cd-2001-01.iso / Hard Disk / Test-Run / Test-Run 210.exe / Control / Alert5.bat < prev    next >
Encoding:
DOS Batch File  |  1999-08-10  |  2.9 KB  |  70 lines

  1. @echo off 
  2. rem Alert5.bat (some -ok files, no cha files)
  3. :Alert5
  4. echo.
  5. echo.
  6. echo         ╔════════════════════════════════════════════════════════════╗
  7. echo         ║         *** TEST-RUN by BB INSTALLATION ALERT ***          ║
  8. echo         ║                                                            ║
  9. echo         ║ TEST-RUN has previously been installed on this system, and ║
  10. echo         ║ stored the Registry files on your hard disk on removal.    ║
  11. echo         ║                                                            ║
  12. echo         ║ The Test-Run files left behind are not complete, and would ║
  13. echo         ║ cause Test-Run to fail. You are advised to delete the file ║
  14. echo         ║ sets left behind when Test-Run was last uninstalled. Test- ║
  15. echo         ║ Run installation will then proceed,  and operation will be ║
  16. echo         ║ normal.                                                    ║
  17. echo         ╚════════════════════════════════════════════════════════════╝
  18. echo.
  19. echo.
  20. choice .            Delete previous corrupt TEST-RUN files  
  21. if errorlevel 2 goto :confirm
  22. if errorlevel 1 goto :cleanup
  23.  
  24. :cleanup
  25. if exist c:\windows\tr~winin.-ok     attrib c:\windows\tr~winin.-ok -r -s -h
  26. if exist c:\windows\tr~systm.-ok     attrib c:\windows\tr~systm.-ok -r -s -h
  27. if exist c:\windows\tr~user.-ok      attrib c:\windows\tr~user.-ok  -r -s -h
  28. if exist c:\windows\tr~sysin.-ok     attrib c:\windows\tr~sysin.-ok -r -s -h
  29. if exist c:\windows\tr~proin.-ok     attrib c:\windows\tr~proin.-ok -r -s -h
  30. if exist c:\tr~autox.-ok             attrib c:\tr~autox.-ok         -r -s -h
  31. if exist c:\tr~confg.-ok             attrib c:\tr~confg.-ok         -r -s -h
  32. if exist c:\tr~msdos.-ok             attrib c:\tr~msdos.-ok         -r -s -h
  33.  
  34. if exist c:\windows\tr~winin.-ok     del c:\windows\tr~winin.-ok
  35. if exist c:\windows\tr~systm.-ok     del c:\windows\tr~systm.-ok
  36. if exist c:\windows\tr~user.-ok      del c:\windows\tr~user.-ok
  37. if exist c:\windows\tr~sysin.-ok     del c:\windows\tr~sysin.-ok
  38. if exist c:\windows\tr~proin.-ok     del c:\windows\tr~proin.-ok
  39. if exist c:\tr~autox.-ok             del c:\tr~autox.-ok
  40. if exist c:\tr~confg.-ok             del c:\tr~confg.-ok
  41. if exist c:\tr~msdos.-ok             del c:\tr~msdos.-ok
  42.  
  43. if exist c:\windows\test~run.bmp     del c:\windows\test~run.bmp
  44.  
  45. if exist c:\windows\command\tr-by-bb\folder\0n.lnk del c:\windows\command\tr-by-bb\folder\0n.lnk
  46. if exist c:\windows\command\tr-by-bb\folder\0ff.lnk del c:\windows\command\tr-by-bb\folder\0ff.lnk
  47.  
  48. goto :welcome
  49.  
  50. :confirm
  51. echo.
  52. echo         The Test-Run  files left behind from the previous installation  
  53. echo         of TEST-RUN should be erased.  They could corrupt your system!
  54. echo                           You should delete them now.
  55. echo.
  56. choice .      *LAST CHANCE*          Delete previous TEST-RUN files
  57. if errorlevel 2 goto :welcome
  58. if errorlevel 1 cls
  59. goto :alert5 
  60.  
  61.  
  62. :Welcome
  63. start /max Welcome.pif
  64. goto :exit
  65.  
  66. :exit
  67. exit
  68.  
  69.  
  70.